import java.io.IOException;

public class Main {

	public static void main(String[] args) {

		Executor executor = new Executor();
		executor.start();

		executor.put(new Task("A"));
		executor.put(new Task("B"));
		executor.put(new Task("C"));
		executor.put(new Task("D"));
		executor.put(new Task("E"));
		executor.put(new Task("F"));
		executor.put(new Task("G"));

		try {
			System.out.println("enter1:");
			System.in.read();
			executor.undo();
		} catch (IOException e) {
		}
	}

}
